<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
		<title></title>
		<script>
			function allChoice(){
				var items = document.getElementsByName("itemChecked");
				var all = document.getElementsByName("allChecked");
				for(var i=0;i<items.length;i++){
						items[i].checked = all.item(0).checked;
				}
			}
		</script>
	</head>
	<body>
ȫѡ<input type="checkbox" name="allChecked" onclick="allChoice()" /><br />
<input type="checkbox" name="itemChecked" /><br />
<input type="checkbox" name="itemChecked" /><br />
<input type="checkbox" name="itemChecked" /><br />
	</body>
</html>
